package com.biostime.qdingding.modules.cms.dao;

import java.util.HashMap;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.biostime.qdingding.common.mybatis.MyBatisDao;
import com.biostime.qdingding.common.persistence.CrudDao;
import com.biostime.qdingding.modules.cms.entity.Article;
import com.biostime.qdingding.modules.qd.api.dto.ArticleDto;


/**
 * 文章表Dao
 * @author king
 * @version 2015-12-11
 */
@MyBatisDao
public interface ArticleDao extends CrudDao<Article> {
	
	
	
	
//	<!-- ————————————————————————————楚河汉界，谁敢动我的，打死 ————————————————————————————————————-->
	public List<HashMap<String,Object>>  getArticleCategory(@Param("centerId")String centerId);
	
	public List<ArticleDto> getArticles(@Param("categoryId") String categoryId,@Param("channelId") String channelId);
	
	public ArticleDto getArticleById(@Param("id") String id);
	
	public List<ArticleDto> getRecommendArticle(@Param("categoryId") String categoryId,@Param("channelId") String channelId);
	
	public ArticleDto getArticleByTitle(@Param("title") String title);

}